home *** CD-ROM | disk | FTP | other *** search
- on fixPath filePath
- if (the environment).platform contains "Macintosh" then
- delim = ":"
- else
- delim = "\"
- end if
- n = length(filePath)
- fixedPath = EMPTY
- repeat with i = 1 to n
- currChar = char i of filePath
- if (currChar = ":") or (currChar = "\") then
- currChar = delim
- end if
- fixedPath = fixedPath & currChar
- end repeat
- if char n of filePath <> delim then
- fixedPath = fixedPath & delim
- end if
- return fixedPath
- end
-